//
//  ShouHouTableViewCell.m
//  JiuJiuShangCheng
//
//  Created by jiujiukeji on 2018/7/16.
//  Copyright © 2018年 jiujiukeji. All rights reserved.
//

#import "ShouHouTableViewCell.h"

@implementation ShouHouTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUpUI];
    }
    return self;
}
- (void)setUpUI
{
    self.btn1 = [UIButton buttonWithTitle:@"" fontSize:12 titleColor:UIColorFromRGB(0x909090) background:kClearColor cornerRadius:3];
    _btn1.layer.borderWidth = 1;
    _btn1.layer.borderColor = globalGray.CGColor;
    [self addSubview:_btn1];
    [_btn1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(rateWidth(25));
        make.centerY.equalTo(self);
        make.size.mas_offset(CGSizeMake(rateWidth(160), rateHeight(50)));
    }];
    self.btn2 = [UIButton buttonWithTitle:@"" fontSize:12 titleColor:UIColorFromRGB(0x909090) background:kClearColor cornerRadius:3];
    _btn2.layer.borderWidth = 1;
    _btn2.layer.borderColor = globalGray.CGColor;
    [self addSubview:_btn2];
    [_btn2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.btn1.mas_right).offset(rateWidth(25));
        make.centerY.equalTo(self);
        make.size.mas_offset(CGSizeMake(rateWidth(160), rateHeight(50)));
    }];
    self.btn3 = [UIButton buttonWithTitle:@"" fontSize:12 titleColor:UIColorFromRGB(0x909090) background:kClearColor cornerRadius:3];
    _btn3.layer.borderWidth = 1;
    _btn3.layer.borderColor = globalGray.CGColor;
    [self addSubview:_btn3];
    [_btn3 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.btn2.mas_right).offset(rateWidth(25));
        make.centerY.equalTo(self);
        make.size.mas_offset(CGSizeMake(rateWidth(160), rateHeight(50)));
    }];
    
}

@end
